﻿using System;
using System.Threading.Tasks;
using ETModel;

namespace ETHotfix
{
    [ActorMessageHandler(AppType.Map)]
    public class G2M_SessionDisconnectHandler : AMActorLocationHandler<Unit, G2M_SessionDisconnect>
    {
        protected override void Run(Unit unit, G2M_SessionDisconnect message)
        {
            unit.GetComponent<UnitGateComponent>().IsDisconnect = true;
        }
    }
}